Release 10.1A: OpenEdge Data Management:
SQL Reference
LOCATE
Returns the location of the first occurrence of
char_expr1inchar_expr2. If the function includes the optional integer argumentstart_pos,LOCATEbegins searchingchar_expr2at that position. If the function omits thestart_posargument,LOCATEbegins its search at the beginning ofchar_expr2.
LOCATEdenotes the first character position of a character expression as1. If the search fails,LOCATEreturns0. If either character expression isNULL,LOCATEreturns aNULLvalue.Syntax
Example
In the following example, which uses two string literals as character expressions,
LOCATEreturns a value of 6:
Note
Compatibility
ODBC compatible
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |